package com.csd.service;

import java.util.List;

import com.csd.pojo.Team;
import com.csd.vo.UserVO;

public interface ITeamService {

	/**
	 * 团队登录
	 * @param userVO
	 * @return 返回团队id
	 */
	public UserVO login(UserVO userVO);

	public List<Team> listTeam();

	public boolean saveTeam(Team team);

	public Team getTeamByID(Integer ID);
	
	public boolean deleteTeam(Integer ID);

	public boolean updateTeam(Team team);

	public boolean resetLeader(Integer leaderID);

	public boolean resetPassword(String oldPassword,String newPassword);
	
	public Team getTeam();
	
	public  boolean checkUserName(String userName);
	
	public boolean hasProjectOrNot(Integer ID);
	
	public int getTeamMemberNumberByID(Integer ID);	
}
